#!/bin/bash 
# breaking out of an inner loop

for (( a = 1; a < 4; a++ )); do
    echo "outer loop: $a"
    for (( b = 1; b < 100; b++ )); do
        if [ $b -eq 5 ]; then
            break
        fi
        echo "  Inner loop: $b"
    done
done
